<?php
/**
 * 公众号素材接口
 * @author lss
 * 2017-06-06
 */
namespace soa\mp;

use soa\client;

class Media  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';


	/**
	 * 获取临时素材内容
	 * @param $platform
	 * @param $mediaId
	 * @return array
	 */
	public function getContent($platform,$serverId){
		return $this->post("api/Media/getContent",[
			"mediaId" => $serverId,
			"platform" => $platform,
		]);
	}
}